package com.csdj.music.mapper;

import com.csdj.music.vo.RankList;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
* @author XuTao
* @description 针对表【rank_list】的数据库操作Mapper
* @createDate 2023-03-13 15:53:22
* @Entity com.csdj.music.vo.RankList
*/
public interface RankListMapper extends BaseMapper<RankList> {
    /**
     * 新增
     * @param rankList
     * @return
     */
    public int insert(RankList rankList);

    /**
     * 查总分
     * @param songListId
     * @return
     */
    public int selectScoreSum(@Param("songListId") Integer songListId);

    /**
     * 查总评分人数
     * @param songListId
     * @return
     */
    public int selectRankNum(@Param("songListId") Integer songListId);
}




